package btrace;

import static com.sun.btrace.BTraceUtils.jstack;
import static com.sun.btrace.BTraceUtils.println;

import com.sun.btrace.annotations.BTrace;
import com.sun.btrace.annotations.OnMethod;

@BTrace
public class SystemGC {
	@OnMethod(clazz = "java.lang.System", method = "gc")
	public static void onSystemGC() {
		println("entered System.gc()");
		jstack();// print the stack info.
		println();
	}
}
